import { Dog } from "./Dog.js";
import { Pig } from "./pig.js";
import { Lion } from './Lion.js';
import { Food } from './food.js';
import { Scale } from './Scale.js';


let peggie = new Pig('佩奇');
let wangcai = new Dog('旺财');
const apple = new Food('苹果', 10);

let scale = new Scale();

console.log(scale.measure(wangcai, apple));